package com.hobbit.ui.viewbase
{
	import starling.display.Sprite;

	/**
	 * 应用程序所有层
	 * @author Elendil
	 * 
	 */
	public class ViewLayers extends Sprite implements IViewLayers
	{
		private var _tipsLayer:Sprite;
		private var _popUpLayer:Sprite;
		private var _popUpTipLayer:Sprite;
		private var _uiLayer:Sprite;
		private var _sceneLayer:Sprite;
		private var _loadingLayer:Sprite;
		private var _touchLayer:Sprite;
		
		public function ViewLayers()
		{
			super();
			
			_tipsLayer = new Sprite();
			_popUpLayer = new Sprite();
			_popUpTipLayer = new Sprite();
			_uiLayer = new Sprite();
			_sceneLayer = new Sprite();
			_loadingLayer = new Sprite();
			_touchLayer = new Sprite();
			
			addChild(_sceneLayer);
			addChild(_touchLayer);
			addChild(_uiLayer);
			addChild(_tipsLayer);
			addChild(_popUpLayer);
			addChild(popUpTipLayer);
			addChild(_loadingLayer);
		}
		
		/**
		 * 触摸层(reserved)必要的时候用于场景，避免鼠标事件冒泡
		 */
		public function get touchLayer():Sprite
		{
			return _touchLayer;
		}

		/**
		 * 弹出框tip层
		 */
		public function get popUpTipLayer():Sprite
		{
			return _popUpTipLayer;
		}

		/**
		 * loading层
		 */
		public function get loadingLayer():Sprite
		{
			return _loadingLayer;
		}

		public function get sceneLayer():Sprite
		{
			return _sceneLayer;
		}

		/**
		 * 主ui层比如工具条， 英雄头像
		 * @return 
		 * 
		 */
		public function get uiLayer():Sprite
		{
			return _uiLayer;
		}

		/**
		 * 弹出层
		 * @return 
		 * 
		 */
		public function get popUpLayer():Sprite
		{
			return _popUpLayer;
		}

		/**
		 * 提示层
		 * @return 
		 * 
		 */
		public function get tipsLayer():Sprite
		{
			return _tipsLayer;
		}

	}
}